home *** CD-ROM | disk | FTP | other *** search
- From: LittleGuyRascal@msn.com (Gregory Saxton)
- Subject: RE: polymorphism and style
- Date: 27 Feb 96 03:36:08 -0800
- References: <4gr4ur$n13@alpha.pcix.com>
- Message-ID: <00001a81+0000a893@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- My experience is that #3 is the best in terms of OO Class Design,
- maintainability and certainly debugging since you are using pointers.
-
-
- Unneccessary casting of pointers can obfuscate your code and decrease
- readability. Personally I would not implement #2 because it is not
- required using your 3rd solution and could lead future users of your
- class to believe that protocol is the defacto standard.
-
- Elegant solutions need not be complex. Good ideas!
-